<template>
  <div class="ICIndustry">
    <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
      <el-tab-pane label="相关技术专利" name="first">
        <Patent :nodeInfo="nodeInfo" />
      </el-tab-pane>
      <el-tab-pane label="相关机构企业" name="second" lazy>
        <Enterprise :nodeInfo="nodeInfo" />
      </el-tab-pane>
      <el-tab-pane label="相关专家" name="three" lazy>
        <Expert :nodeInfo="nodeInfo" />
      </el-tab-pane>
      <el-tab-pane label="相关资讯" name="four" lazy>
        <Information :nodeInfo="nodeInfo" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>
<script>
import Patent from "../components/patent.vue";
import Enterprise from "../components/enterprise.vue";
import Expert from "../components/expert.vue";
import Information from "../components/information.vue";
export default {
  props: {
    showTabs: {
      type: String,
      default: "",
    },
    nodeInfo: {
      type: Object,
      default: () => {
        return {
          chainName: "",
          eid: "",
          name: "",
        };
      },
    },
  },
  watch: {
    showTabs: {
      handler(newVal) {
        this.activeName = newVal;
      },
      immediate: true,
    },
  },
  data() {
    return {
      activeName: "first",
    };
  },
  created() {
    this.init();
  },
  methods: {
    init() {},
    handleClick() {},
  },
  components: {
    Patent,
    Enterprise,
    Expert,
    Information,
  },
};
</script>
<style lang="scss" scoped>
.ICIndustry {
  ::v-deep .el-pagination {
    .more + .number {
      display: none;
    }
  }
}
</style>
